#include "StompedReality/Core/Game.h"
#include "StompedReality/Core/Graphics/RenderSystem.h"
#include <UnitTest++.h>
#ifdef LINUX
#include "StompedReality/Core/Graphics/LinuxRenderSystem.h"
#elif WIN32
#include "StompedReality/Core/Graphics/Windows/WGLRenderSystem.h"
#endif
SUITE ( Render_System_Test )
{
  TEST ( Key_Test )
  {
    StompedReality::Graphics::RenderSystem system;
    uint64_t renderKeyA = system.CalculateKey ( 0, 0.0f );
    uint64_t renderKeyB = system.CalculateKey ( 1, 0.5f );
    uint64_t renderKeyC = system.CalculateKey ( 4, -0.4f );
    uint64_t renderKeyD = system.CalculateKey ( 4, 0.4f );
    uint64_t renderKeyE = system.CalculateKey ( 4, 0.5f );
    CHECK_EQUAL ( true, renderKeyA  < renderKeyB );
    CHECK_EQUAL ( true, renderKeyB  < renderKeyC );
    CHECK_EQUAL ( true, renderKeyC  < renderKeyD );
    CHECK_EQUAL ( true, renderKeyD  < renderKeyE );
  }
}